package com.xique.door.util;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.xique.door.bean.vo.user.*;
import org.springframework.stereotype.Component;

import java.util.Collections;

/**
 * @author: caogq
 * @Date: 2022/1/17 15:21
 * @Description:
 */
@Component
public class JsonUtils {
    public static void main(String[] args) {

        String json = JSON.toJSONString(new UserListVo(), SerializerFeature.WriteMapNullValue,SerializerFeature.WriteNullStringAsEmpty);
        System.out.println(json);
    }
}
